package com.qixin.modules.ea.controller;

import com.qixin.modules.eaBasic.service.IEaTaskService;
import com.qixin.modules.eaBasic.vo.EaTaskVo;
import com.qixin.modules.ea.vo.TaskPageVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @Author:wly
 * @Date:2021/9/18
 * @Describtion: 待办访问层
 */
@Api(tags="app待办")
@RestController
@RequestMapping("/app/api/task")
@Slf4j
public class ApiTaskController {
    @Autowired
    private IEaTaskService iEaTaskService;

    /**
     * 查询待办列表
     *
     * @param taskPageVo
     * @return Result
     */
    @AutoLog(value = "查询待办列表-查询")
    @ApiOperation(value="查询待办列表-查询", notes="查询待办列表-查询")
    @PostMapping(value = "/list")
    public Result<?> list(@RequestBody TaskPageVo taskPageVo) {
        Map<String,Object> resutlList = iEaTaskService.list(taskPageVo);
        return Result.OK(resutlList);
    }

}
